<template>
	<view class="main">
		<view class="video-container">
			<video object-fit="cover" :controls="false" :show-play-btn="false" :muted="true" :autoplay="true" :loop="true" style="width: 100%;height: 100%;" src="/static/video.mp4"></video>
		</view>
		<view class="content">
			<image class="logo" src="/static/imgs/long-logo.png"></image>
			<view class="start">
				<uv-button @tap="toIndex" :custom-style="{
					borderRadius: '40rpx',
					zIndex: 10
				}" type="primary" :plain="true" :hairline="true" text="开启旅程"></uv-button>
			</view>
		</view>
	</view>
</template>

<script>
	import uvButton from 'uview-plus/components/u-button/u-button.vue'
	
	export default {
		components: {
			uvButton
		},
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			toIndex() {
				uni.redirectTo({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style scoped>
	.main {
		height: 100vh;
		width: 100%;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		overflow: hidden;
	}

	.video-container {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
	}

	.content {
		position: relative;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		z-index: 2;

		.logo {
			width: 300rpx;
			height: 40rpx;
			margin-top: 200rpx;
			margin-left: auto;
			margin-right: auto;
			margin-bottom: 50rpx;
		}

		.start {
			position: fixed;
			bottom: 20rpx;
			width: 200rpx;
			left: calc(50% - 100rpx);
			z-index: 10;
		}
	}
</style>